1
2
3
4
5
6
7
8
9
10
11
12
13
#
# Gnuplot(그누플롯) 99 bottles of beer 예제
# 출처: https://rosettacode.org/
#
if (!exists("bottles")) bottles = 99
print sprintf("%i bottles of beer on the wall", bottles)
print sprintf("%i bottles of beer", bottles)
print "Take one down, pass it around"
bottles = bottles - 1
print sprintf("%i bottles of beer on the wall", bottles)
print ""
if (bottles > 0) reread
Enter to Rename, <Shift>+Enter to Preview